package com.pansoft.openplanet.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.efounder.utils.ResStringUtil;
import com.pansoft.openplanet.R;

/**
 * 积分卡详情界面
 *
 * @author YQS
 */
@Deprecated
public class PointCardDetailActivity extends TCBaseActivity implements View.OnClickListener {


    //背景图
    private ImageView ivCardBg;
    private ImageView ivAvatar;
    private TextView tvName;
    private TextView tvPoint;
    private TextView tvCardValue;
   // private TextView tvPointValueIntro;
    private TextView tvCardCoupon;
   // private TextView tvCardCouponIntro;
    private TextView tvCardLevel;
    //private TextView tvCardLevelIntro;
    private View divider;
   // private TextView tvCardInfo;
    private View lineDivider;
    private TextView tvCardPrivilegeIntro;
    private TextView tvCardPrivilege;
    private TextView tvCardInvalidateDateIntro;
    private TextView tvCardInvalidateDate;
    private TextView tvCardNeedsToKnowIntro;
    private TextView tvCardNeedsToKnow;

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.talk_chain_activity_point_card_detail);
        initView();
        initData();

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        dispose();
    }


    private void initView() {
        ImageView ivBack = (ImageView) findViewById(R.id.iv_back);
        ivBack.setOnClickListener(this);
        TextView tvTitle = (TextView) findViewById(R.id.tv_title);
        if (getIntent().hasExtra("title")) {
            tvTitle.setText(getIntent().getStringExtra("title"));
        } else {
            tvTitle.setText(ResStringUtil.getString(R.string.open_planet_detail));
        }

        ivCardBg = (ImageView) findViewById(R.id.iv_card_bg);
        ivAvatar = (ImageView) findViewById(R.id.iv_avatar);
        tvName = (TextView) findViewById(R.id.tv_name);
        tvPoint = (TextView) findViewById(R.id.tv_point);
        tvCardValue = (TextView) findViewById(R.id.tv_card_value);
       // tvPointValueIntro = (TextView) findViewById(R.id.tv_point_value_intro);
        tvCardCoupon = (TextView) findViewById(R.id.tv_card_coupon);
       // tvCardCouponIntro = (TextView) findViewById(R.id.tv_card_coupon_intro);
        tvCardLevel = (TextView) findViewById(R.id.tv_card_level);
      //  tvCardLevelIntro = (TextView) findViewById(R.id.tv_card_level_intro);
        divider = findViewById(R.id.divider);
       // tvCardInfo = (TextView) findViewById(R.id.tv_card_info);
        lineDivider = findViewById(R.id.line_divider);
        tvCardPrivilegeIntro = (TextView) findViewById(R.id.tv_card_privilege_intro);
        tvCardPrivilege = (TextView) findViewById(R.id.tv_card_privilege);
        tvCardInvalidateDateIntro = (TextView) findViewById(R.id.tv_card_invalidate_date_intro);
        tvCardInvalidateDate = (TextView) findViewById(R.id.tv_card_invalidate_date);
        tvCardNeedsToKnowIntro = (TextView) findViewById(R.id.tv_card_needs_to_know_intro);
        tvCardNeedsToKnow = (TextView) findViewById(R.id.tv_card_needs_to_know);

    }

    private void initData() {
        tvName.setText(getIntent().getStringExtra("title"));


        loadData();

    }

    private void loadData() {


    }


    @Override
    public void onClick(View v) {
        int id = v.getId();
        if (id == R.id.iv_back) {
            finish();
        }

    }


}
